package com.middlegroup.pay.service;

import com.middlegroup.common.exception.BaseException;
import com.middlegroup.common.model.TransRequest;
import com.middlegroup.common.model.TransResult;
import com.middlegroup.pay.dto.RouterRequest;
import com.middlegroup.pay.dto.RouterResponse;
import com.middlegroup.pay.entity.MerchantSubjectChannelRouter;
import com.baomidou.mybatisplus.service.IService;

import java.text.ParseException;

/**
 * <p>
 * 商户主体通道路由表 服务类
 * </p>
 *
 * @author pc123
 * @since 2019-01-04
 */
public interface MerchantSubjectChannelRouterService extends IService<MerchantSubjectChannelRouter>  {
    /**商户通道路由
     * @param request
     * @return
     */
    RouterResponse router(RouterRequest request) throws BaseException, ParseException;

    /**刷新缓存
     * @param request
     * @return
     * @throws BaseException
     * @throws ParseException
     */
    RouterResponse refreshRouter(RouterRequest request) throws BaseException, ParseException;

}
